﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Model.Entities;
using CsharpTrainer.Core.DAL;
using CsharpTrainer.Domain.Services;

namespace CsharpTrainer.Domain.Clients
{
    public class EmployeesClient
    {
        private EmployeesService _employeesService;

        public EmployeesClient()
        {
            this._employeesService = new EmployeesService(new KissDao<Employee>("Employees"));
        }

        public Employee GetEmployee(int employeeId)
        {
            return _employeesService.GetEmployee(employeeId);
        }

        public IList<Employee> GetEmployeesByTitle(string title)
        {
            return _employeesService.GetEmployeesByTitle(title);
        }

        public IList<Employee> GetEmployeesByTitle2(string title)
        {
            return _employeesService.GetEmployeesByTitle2(title);
        }

        public List<Employee> GetAllEmployees()
        {
            return _employeesService.GetAllEmployees();
        }
    }
}
